<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<jsp:include page="xhtml-header.jsp"/>
<jsp:include page="header-tag.jsp">
	<jsp:param name="pagetitle" value="Projects"/>
</jsp:include>
<div>
<dl>
<c:forEach var="item" items="${items}">
<dt>${fn:escapeXml(item.name)}</dt>
<dd>
	<div>
		<div><c:out value="${fn:escapeXml(item.description)}"/></div>
		<c:choose>
			<c:when test="${item.scope=='PUBLIC' }"><span style='color:green;'>PUBLIC</span></c:when>
			<c:when test="${item.scope=='PRIVATE' }"><span style='color:red;'>PRIVATE</span></c:when>
		</c:choose>
		<c:url var="url" value="${pageContext.request.contextPath}">
		  <c:param name="action" value="project.view" />
		 <c:param name="project.id" value="${item.id}" />
		</c:url><a href="${fn:escapeXml(url)}">View</a>
		<c:if test="${item.admin }">
			<c:url var="url" value="${pageContext.request.contextPath}">
			  <c:param name="action" value="project.edit" />
			 <c:param name="project.id" value="${item.id}" />
			</c:url><a href="${fn:escapeXml(url)}">Edit</a>
		</c:if>
	</div>
</dd>
</c:forEach>
</dl>
</div>
<jsp:include page="xhtml-footer.jsp"/>

